<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" buffer="64kb"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>优惠卷</title>
		<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="${ctx}/js/jquery.js"></script>
		<script language="JavaScript" src="${ctx}/js/filter.js"></script>
		<script language="JavaScript" src="${ctx}/js/json2.js"></script>
		<script language="JavaScript">
			function gotoPage(pageOffset, pageSize) {
				var form = document.getElementsByTagName("form")[1];
				form.elements["pager.offset"].value = pageOffset;
				form.elements["pageSize"].value = pageSize;
				form.submit();
			}
		</script>
	</head>
	<body>
		<div class="bg">
			<div class="bg_inside">
				<div class="head">
					<c:import url="/pages/safeai/jsp/shop/header.jsp"></c:import>
				</div>
				<c:import url="/front/userinfo.do?method=myRayi"></c:import>
				<div class="user_order_content">
					<div class="user_order_content_top">
						<img src="../images/user_order_content_top.jpg" />
					</div>
					<form action="${ctx}/front/userinfo.do?method=queryEcoupon" method="post">
					<!-- 开始 -->
					<div class="user_order_content_center">
						<ul>
							<li
								style=" background-image:url(../images/title_letter_icon.jpg); background-position:left center; background-repeat:no-repeat;padding:5px 0px 0px 15px;line-height:10px;color:#5a3e2e">
								我的优惠卷
							</li>
						</ul>
						<logic:present name="ecouponList">
						<logic:notEmpty name="ecouponList" property="records">
						<ul>
							<li style="color:#A6957C; background-color:#efefef">
								<span style="width:100px;">优惠卷编号</span><span style="width:170px">优惠卷名称</span><span
									style="width:170px">生效日期/失效日期</span><span style="width:80px">状态</span><span
									style="width:90px">剩余次数</span>
							</li>
							
							<logic:iterate id="list" name="ecouponList" property="records">
								<li>
									<span style="width:100px">${list.ecouponno}</span><span
										style="width:170px">${list.name}</span>
									<span style="width:170px"><bean:write name="list"
											property="startime" format="yyyy-MM-dd" />/<bean:write
											name="list" property="endtime" format="yyyy-MM-dd" />
									</span>
									<span style="width:80px"> <logic:equal value="0"
											name="list" property="struts">
								有效
							</logic:equal> <logic:notEqual value="0" name="list" property="struts">
								无效
							</logic:notEqual>
									</span>
									<span style="width:90px">${list.maxtimes-list.usertimes}</span>
								</li>
							</logic:iterate>
							
							<li
								style="float:right;text-align:right;padding-right:30px;margin-top:20px;width:400px">
								<%@ include file="/pages/safeai/jsp/common/page.jsp"%>
							</li>
							
						</ul>
						</logic:notEmpty>
						</logic:present>
					</div>
					<!-- 结束 -->
					</form>
					<div class="user_order_content_bottom">
						<img src="../images/user_order_content_bottom.jpg" />
					</div>
				</div>
			</div>
			<div style="margin-top:10px;*+margin-top:20px">
				<%@ include file="/user/commonProblem.jsp"%>
			</div>
		<div class="bottom">
	<%@ include file="/pages/safeai/jsp/shop/bottom.jsp"%>	
	<div class="clearAll"></div>
</div>
	</body>
</html>
